package com.itheima.dcp.demo1;

import java.io.IOException;
import java.net.*;
import java.util.Scanner;

import static java.net.InetAddress.getAllByName;

public class ClientDemo {
    public static void main(String[] args) throws IOException {
        Scanner sc=new Scanner(System.in);
        DatagramSocket as=new DatagramSocket();
        String s=sc.next();
        byte[] ss = s.getBytes();
        String host = "224.0.1.0";
        DatagramPacket  dp=new DatagramPacket(ss,ss.length, InetAddress.getByName(host),10000);
        as.send(dp);
        as.close();


    }
}
